#ifndef RETURNBOOK_H
#define RETURNBOOK_H

#include <QWidget>
#include <bookinfo.h>
#include <QStandardItemModel>
#include <datastruct.h>
#include <QSqlTableModel>
#include <QSqlRecord>
#include "QRoleReader.h"
#include "dboperation.h"
#include "QMyPageWidget.h"
namespace Ui {
class ReturnBook;
}

class ReturnBook : public QMyPageWidget
{
    Q_OBJECT

public:
    explicit ReturnBook(QWidget *parent = 0);
    ~ReturnBook();

    virtual void notify();
protected slots:
    void showBookInfo();
   // void update_Book(const int &index);

private slots:
    void on_button_updata_clicked();

    void on_button_return_clicked();

private:
    Ui::ReturnBook *ui;
    QList<Book> List_Book;
    void GetData();
    BookInfo* bookInfo;
};

#endif // RETURNBOOK_H
